package com.example.bean;


import com.example.service.ServiceInterface;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;


/**
 * 从zookeeper 获取 具体实现类
 *
 * @author kangshuai
 */
@Component
public class ConsumerComponent {

    @Reference
    private ServiceInterface service;

    public String aMethod() throws Exception {
        return service.methodA();
    }

    public String bMethod() throws Exception {
        return service.methodB();
    }

    public String cMethod() throws Exception {
        return service.methodC();
    }
}
